Telegram Group & Telegram Channel
Found very intersting approach to count the digits of an integers #python:

from math import floor, log10


def count_digits(n):
return 1 + floor(log10(n))

In [2]: count_digits(5)
Out[2]: 1

In [3]: count_digits(999)
Out[3]: 3

In [4]: count_digits(1000)
Out[4]: 4



tg-me.com/python_programming_challenges/74
Create:
Last Update:

Found very intersting approach to count the digits of an integers #python:

from math import floor, log10


def count_digits(n):
return 1 + floor(log10(n))

In [2]: count_digits(5)
Out[2]: 1

In [3]: count_digits(999)
Out[3]: 3

In [4]: count_digits(1000)
Out[4]: 4

BY 🇺🇦 Python Programming Сhallenges


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python_programming_challenges/74

View MORE
Open in Telegram


🇺🇦 Python Programming Сhallenges Telegram | DID YOU KNOW?

Date: |

A project of our size needs at least a few hundred million dollars per year to keep going,” Mr. Durov wrote in his public channel on Telegram late last year. “While doing that, we will remain independent and stay true to our values, redefining how a tech company should operate.

The messaging service and social-media platform owes creditors roughly $700 million by the end of April, according to people briefed on the company’s plans and loan documents viewed by The Wall Street Journal. At the same time, Telegram Group Inc. must cover rising equipment and bandwidth expenses because of its rapid growth, despite going years without attempting to generate revenue.

🇺🇦 Python Programming Сhallenges from nl


Telegram 🇺🇦 Python Programming Сhallenges
FROM USA